package com.qrpcw.careercup;

public class testUniqueChar {
	public static void main(String[] str){
		String input = "abcdefghijklmn";
		testUniqueChar test = new testUniqueChar();
		System.out.println(test.isUniqueChar(input));
	}
	
	public boolean isUniqueChar(String a){
		if(a.length() > 256) { return true;}
		
		boolean[] char_set = new boolean[256];
		for(int i = 0; i<a.length(); i++){
			int temp = a.charAt(i);
			if(char_set[temp]){
				return false;
			}
			char_set[temp] = true;
		}
		return true;
	}
}
